﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SXFramWork.Core
{
    /// <summary>
    /// 设置权限(web)
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
    public class PowerAttribute:Attribute
    {
        /// <summary>
        /// 设置权限名称
        /// </summary>
        /// <param name="title">权限名称</param>
        /// <param name="isBtn">是否生成按钮</param>
        /// <param name="btnName">按钮名称</param>
        /// <param name="pos">按钮位置  top/down</param>
        public PowerAttribute(string title)
        {
            this.Title = title;
        }
       
        /// <summary>
        /// 权限名称
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 唯一编码 如 "admin_sysuser_add"
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 所属菜单编码
        /// </summary>
        public string MenuCode { get; set; }

    }
}
